#include <bits/stdc++.h>

using namespace std;

class Solution {
public:
    int minSteps(string s, string t)
    {
	int freq[26] {};
	for (int i = 0, len = size(s); i < len; ++i) freq[s[i] - 'a']++;
	for (int i = 0, len = size(t); i < len; ++i) freq[t[i] - 'a']--;
	int res = 0;
	for (int num: freq) res += abs(num);
	return res;
    }

private:
};

int main()
{
    [[maybe_unused]] Solution solution;
    return 0;
}
